d={'name':'john','age':24,'sex':'M'}
d['xie']=100

values=d.values()
keys=d.keys()
items=d.items()
print(values)
print(keys)
print(items)

print(list(keys))
print(tuple(values))
print(list(items))

print(tuple(keys)[1])

d.clear()

#字典合并
x={'name':'john','age':24,'sex':'M'}
x1={'name1':'xie','age1':25,'sex1':'w'}
x2=x|x1
print(x2)